package Demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-06-05
 * Time: 16:25
 */
public class Animal {
    public String name;

    public Animal(String name){
        this.name=name;
    }
    void eat(){
        System.out.println(name+"正在吃饭。。。");
    }
}
